<%@ Page Language="C#" %>
<html>
<body>

<form action="ChartTest_CSharp.aspx" action="POST">
Value 1: <input type="text" name="v1" value="<%= Request["v1"] %>"><br>
Value 2: <input type="text" name="v2" value="<%= Request["v2"] %>"><br>
Value 3: <input type="text" name="v3" value="<%= Request["v3"] %>"><br><br>
<input type="submit" value="Redraw Bar Chart"><br><br>
</form>

<script language="C#" runat="server">

	Single sngValue1, sngValue2, sngValue3;

void Page_Load()
{
	try   { sngValue1 = Convert.ToSingle(Request["v1"]); }	
	catch { sngValue1 = 0; }

	try   { sngValue2 = Convert.ToSingle(Request["v2"]); }	
	catch { sngValue2 = 0; }

	try   { sngValue3 = Convert.ToSingle(Request["v3"]); }	
	catch { sngValue3 = 0; }
}

</script>

<img src="BarChart_CSharp.aspx?v1=<%= sngValue1 %>&v2=<%= sngValue2 %>&v3=<%= sngValue3 %>" width=200 height=200>

</body>
</html>
